package com.ry.est.service;

import com.ry.est.dto.MaintainOrderDTO;
import com.ry.est.dto.SimpleOrderDTO;
import com.ry.est.entity.Users;
import com.ry.est.req.SubmitOrderRequest;

/**
 * @author ry
 * @since 2021-11-10 09:34
 **/
public interface MaintainOrderService {
    SimpleOrderDTO submitOrder(Users users, SubmitOrderRequest orderRequest);

    /**
     * 根据订单编号查询维修订单信息
     * @param orderNo
     * @return
     */
    MaintainOrderDTO getByOrderNo(String orderNo);

    /**
     * 根据订单编号修改订单状态
     * @param orderNo
     * @return
     */
    int updateOrderStatusToPayed(String orderNo);
}
